{include file="./headStart.tpl"}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$("#insertBtn").click(function(event){
	var data1 = $(".partyId").val();
	var data2 = $(".categoryId").val();
    if(data1 == 0)
    {
      alert("Select Customer");
      $(".partyId").focus();
      return false;
    }
     if(data2 == 0)
    {
      alert("Select System");
      $(".categoryId").focus();
      return false;
    }
  });
});
</script>
{/literal}
{include file="./headEnd.tpl"}
<form name="frmDemo" action="{$smarty.server.PHP_SELF}" id="frmDemo" method="post">
<input type="hidden" name="otherServiceId" value="{$otherServiceId}" />
<input type="hidden" name="demoComplete" value="{$demoComplete}" />
<input type="hidden" name="demoInComplete" value="{$demoInComplete}" />
<table align="center" border="1" cellpadding="2" cellspacing="1" >
<tr>
  <td align="center" class="table1" colspan="4">Demo Call</td>
</tr>
<tr>
  <td align="left" class="table2">Customer <font color="red"> *</font> : </td>
  <td class="table2">
    {if $isEdit == 1 || $demoComplete == 1 || $demoInComplete == 1}
      <select name="partyId" id="partyId" disabled="disabled">
    {else}  
      <select name="partyId" id="partyId" class="partyId">
    {/if}
      <option value="0">Customer Name</option>
      {html_options values=$partyId output=$companyName selected=$partySelected}
    </select>
    <a href="party.php?redirectFrom=demo" class="link">New Customer</a>
  </td>
  <td align="left" class="table2">System <font color="red"> *</font> : </td>
  <td class="table2">
    {if $demoComplete == 1 || $demoInComplete == 1}
     <select name="categoryId" id="categoryId"  disabled="disabled">
    {else}
     <select name="categoryId" id="categoryId" class="categoryId">
    {/if}
      <option value="0">Name</option>
      {html_options values=$categoryId output=$categoryName selected=$categorySelected}
    </select>
  </td>
</tr>
<tr>
  <td align="left" class="table2">Demo Date : </td>
  <td NOWRAP class="table2" >
    {if $demoComplete == 1 || $demoInComplete == 1}
      {$complainDateDisplay}
    {else}
      {html_select_date prefix="complainDate" time="$complainDate" start_year="-3" end_year="+1" month_format="%m" field_order="DMY" 
       day_value_format="%02d" disabled=disabled}
     {/if}
  </td>
   <td align="left" class="table2">Target Date :</td>
   <td class="table2" NOWRAP>
    {if $demoComplete == 1}
      {$targetedDateDisplay}
    {else}
     {html_select_date prefix="targetDate" start_year="-1" end_year="+3" field_order="DMY" month_format="%m" time=$targetedDateDisplay}
    {/if}
   </td> 
 </tr>
<tr>
  <td align="left" class="table2">Description <font color="red"> *</font> : </td>
  <td size=5 class="table2"><Textarea Name="description" Rows="3" Cols="50" required>{$descriptionSelected}</Textarea></td>
  <td align="left" class="table2">Important Point : </td>
  <td class="table2"><textarea Name="importantPoint" Rows="3" Cols="50">{$importantPointSelected}</textarea></td>
</tr>
<tr>
  <td align="left" class="table2">Customer Feedback:</td>
  <td class="table2"><textarea Name="customerFeed" Rows="3" Cols="30"></textarea></td>
  <td align="left" class="table2">Customer Signature:</td>
  <td class="table2">______________________</td>
</tr>
<tr>
  <td align="center" class="table2" colspan="4"><input type="submit" name="insertBtn" id="insertBtn" value="Submit" class="button" />
  {if $demoComplete == 1 || $demoInComplete == 1}
    <a href="serviceList.php" class="link">Cancel</a>
  {else}
	    <input class="button" type="submit" name="printBtn" id="printBtn" value="Print" />
  {/if}
  </td>
</tr>
</table>
</form>
{include file="footer.tpl"}